<template>
<view >
	<view v-for="item,index in video">
		<video :src="item.videoAddress" controls></video><span @click="goXiangQing(item.videoId,item.goodsId,item.videoAddress)">视频详情</span><span></span>
	</view>

<view >
   
</view>
</view>
</template>

<script>
	export default{
		data(){
			return{
				
				video:[]
				// 先循环取值
			}
		},
		methods:{
			goXiangQing(videoId,goodsId,videoAddress){
				uni.navigateTo({
					url:"../videoDetails/videoDetails?videoId="+videoId+"&goodsId="+goodsId+"&videoAddress="+videoAddress
				})
			}
		},
		onLoad:function(option){
			this.$req.getCategory(option.category).then(res=>{
				this.video=res.data.list
			})
		}
	}
</script>

<style>
</style>







